from django.conf.urls.defaults import *
from django.views.generic.simple import redirect_to
from django.views import static

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

URL_PREFIX = 'robot'

urlpatterns = patterns('',
  (r'^$', redirect_to, {'url': '/' + URL_PREFIX + '/'}),
  (r'^' + URL_PREFIX + '/', include('robot_gui.core.urls')),
  (r'^' + URL_PREFIX + '/media/(?P<path>.*)$', static.serve, {'document_root': 'media'}),
  # Example:
  # (r'^robot_gui/', include('robot_gui.foo.urls')),

  # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
  # to INSTALLED_APPS to enable admin documentation:
  # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

  # Uncomment the next line to enable the admin:
  # (r'^admin/(.*)', admin.site.root),
)
